//
// Copyright (c) 2009 All Right Reserved
//
// Stephen Toub
// stoub@microsoft.com
// 2009-01-01
// Contains ...
using System;
using System.IO;
namespace LargoCommon.Midi {
/// An end of track meta event message.
[Serializable]
public sealed class MetaEndOfTrack : MetaEvent {
#region Fields
/// The meta id for this event.
private const byte EventMetaId = 0x2F;
#endregion
#region Constructors
/// Initializes a new instance of the MetaEndOfTrack class.
/// The amount of time before this event.
public MetaEndOfTrack(long deltaTime)
: base(deltaTime, EventMetaId) {
}
#endregion
#region Methods
/// Write the event to the output stream.
/// The stream to which the event should be written.
public override void Write(Stream outputStream) {
if (outputStream == null) {
return;
}
//// Write out the base event information
base.Write(outputStream);
//// End of track
outputStream.WriteByte(0x00);
}
#endregion
}
}